From: Juergen Gross Date: Wed, 23 Aug 2017 17:35:00 +0000 (+0200) Subject: xen/drivers/video/vesa.c: let custom parameter parsing routines return errno X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1569 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0cf775506c352892f540e03b9f7edd5eb84aec63;p=xen.git xen/drivers/video/vesa.c: let custom parameter parsing routines return errno Modify the custom parameter parsing routines in: xen/drivers/video/vesa.c to indicate whether the parameter value was parsed successfully. Signed-off-by: Juergen Gross Acked-by: Wei Liu Acked-by: Jan Beulich --- diff --git a/xen/drivers/video/vesa.c b/xen/drivers/video/vesa.c index 09d344c021..c92497e0bc 100644 --- a/xen/drivers/video/vesa.c +++ b/xen/drivers/video/vesa.c @@ -29,12 +29,14 @@ static unsigned int vram_remap; integer_param("vesa-map", vram_remap); static int font_height; -static void __init parse_font_height(const char *s) +static int __init parse_font_height(const char *s) { if ( simple_strtoul(s, &s, 10) == 8 && (*s++ == 'x') ) font_height = simple_strtoul(s, &s, 10); if ( *s != '\0' ) font_height = 0; + + return 0; } custom_param("font", parse_font_height);